projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a2c608
)
xend: little fix for tap
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 26 Nov 2009 10:56:49 +0000
(10:56 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 26 Nov 2009 10:56:49 +0000
(10:56 +0000)
Need get dev type after create tap device as device_create did.
Signed-off-by: Wei Kong <weikong.cn@gmail.com>
tools/python/xen/xend/XendDomainInfo.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
index 8198228b9f7bb4c0343f2743d0be52ba5e43a739..4a36110aab6837f6e0396f8f3d66301562dc5e5d 100644
(file)
--- a/
tools/python/xen/xend/XendDomainInfo.py
+++ b/
tools/python/xen/xend/XendDomainInfo.py
@@
-3840,7
+3840,8
@@
class XendDomainInfo:
try:
devid = dev_control.createDevice(config)
- dev_control.waitForDevice(devid)
+ dev_type = self.getBlockDeviceClass(devid)
+ self._waitForDevice(dev_type, devid)
self.info.device_update(dev_uuid,
cfg_xenapi = {'devid': devid})
except Exception, exn: